package com.situ.mall.user.service.impl;

import com.situ.mall.pojo.entity.user.AccountBalance;
import com.situ.mall.user.mapper.AccountBalanceMapper;
import com.situ.mall.user.service.IAccountBalanceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Sun Huijuan
 * @since 2024-11-27
 */
@Service
public class AccountBalanceServiceImpl extends ServiceImpl<AccountBalanceMapper, AccountBalance> implements IAccountBalanceService {
	@Autowired
	private AccountBalanceMapper accountBalanceMapper;
	
	@Override
	public BigDecimal selectTotal(Long id) {
		return accountBalanceMapper.selectTotal(id);
	}
}
